import { postAxios, getAxios } from '@/lib/http';
export const saleOrderApi = {
    // 新增
    add: (data) => {
        return postAxios('/saleOrder/add', data);
    },
    // 分页查询
    getList: (data) => {
        return postAxios('/saleOrder/page/query', data);
    },
    // 删除
    delete: (id) => {
        return getAxios('/saleOrder/delete/' + id);
    },
    // 查看详情
    getDetail: (id) => {
        return getAxios('/saleOrder/detail/' + id);
    },
    // 更新
    update: (data) => {
        return postAxios('/saleOrder/update', data);
    }
};
